// 从文件系统中读取一个文件然后
const readline = require('readline');
const fs = require('fs');

const option={
    input: fs.createReadStream('readline_dome.md'),
    crlfDelay: Infinity
}
const rl = readline.createInterface(option);

rl.on('line', (line) => {
  console.log(`文件的单行内容：${line}`);
});